package cn.wen.gulimall.product.feign;

import cn.wen.common.to.SkuReductionTo;
import cn.wen.common.to.SpuBoundTo;
import cn.wen.common.to.es.SkuEsModel;
import cn.wen.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-search")
@Service
public interface SearchFeignService {

    // 上架商品
    @PostMapping("/search/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

}
